package realQuestion.weBank;

import java.util.Arrays;
import java.util.Scanner;

public class Main2 {


    public static void main(String[] args){
        // System.out.println(3);

        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
         int[] nums= new int[n];
        for (int i= 0; i <n ; i++) {
            nums[i]=scanner.nextInt();
        }
        Arrays.sort(nums);
        int slow=0;
        for (int i = 1; i < n; i++) {
            if (nums[i]!=nums[slow]){
                slow++;
                nums[slow]=nums[i];
            }
        }
        System.out.println(slow+1);


    }

}
